<?php
    if(($file=fopen("php1.php","r"))===false){
        echo"打开失败";
    }
    else{
        echo "打开成功";
        $rs=fclose($file);
        if($rs){
            echo "\n 关闭成功";
        } 
        else{
            echo "\n 关闭失败";
        }
    }
?>